import { FC } from "react";

interface PropsType {
  count: string | number;
  name?: string;
  onMsg?: (n: number) => void;
}

const Child: FC<PropsType> = (props) => {
  // const Child = (props: PropsType) => {
  return (
    <>
      <div>child子组件 - {props.count}</div>
    </>
  );
};

export default Child;
